package atm;

import javax.swing.*;

/**
 * 菜单界面
 */
public class MenuPanel extends JPanel {
    private ImageIcon saveImg = new ImageIcon("images/buttonSave.jpg");
    private ImageIcon getImg = new ImageIcon("images/buttonGet.jpg");
    private ImageIcon searchImg = new ImageIcon("images/buttonFind.jpg");
    private ImageIcon changePwdImg = new ImageIcon("images/buttonModify.jpg");
    private ImageIcon transFerImg = new ImageIcon("images/buttonTransfer.jpg");
    private ImageIcon offImg = new ImageIcon("images/buttonOff.jpg");
    private JButton saveBtn = new JButton(saveImg);
    private JButton getBtn = new JButton(getImg);
    private JButton searchBtn = new JButton(searchImg);
    private JButton changePwdBtn = new JButton(changePwdImg);
    private JButton transFerBtn = new JButton(transFerImg);
    private JButton offBtn = new JButton(offImg);
    public MenuPanel(){
        this.setLayout(null);
        saveBtn.setBounds(0,170,140,50);
        getBtn.setBounds(0,240,140,50);
        transFerBtn.setBounds(0,310,140,50);
        changePwdBtn.setBounds(884,170,140,50);
        searchBtn.setBounds(884,240,140,50);
        offBtn.setBounds(884,310,140,50);
        this.add(saveBtn);
        this.add(getBtn);
        this.add(transFerBtn);
        this.add(changePwdBtn);
        this.add(searchBtn);
        this.add(offBtn);
        this.setOpaque(false);
    }
}
